Create and Edit Toolbars
 
 
 
Bottom of the Page

Some of the simplest toolbar customizations can make your daily drawing tasks more efficient. For example, you can consolidate frequently used commands and controls onto one toolbar, remove buttons that you never use, or change some simple toolbar properties.

You can also specify information to be displayed when the cursor passes over a button in the form of a tooltip.

You can add buttons or remove buttons you use infrequently, and rearrange buttons and toolbars. You can also create your own toolbars and flyout toolbars, and create or change the button image associated with a command. When creating a toolbar, you can create a toolbar from scratch, create a copy of an existing toolbar, or create a toolbar from an existing pull-down menu. Sub-menu items are not included when a toolbar is created from a pull-down menu.

NoteWhen you create a toolbar, you should determine in which workspaces you want to display the toolbar. By default, a new toolbar is displayed in all workspaces.

The following table shows the properties of the Standard toolbar as they appear in the Properties pane.

Properties for the Standard toolbar

Properties pane item

Description

Example

Name

String used as the caption for the toolbar.

Standard

Description

Text used to describe the element; does not appear in the user interface.

Standard Toolbar

Default Display

Specifies if the toolbar is displayed when the CUIx file is loaded as a partial customization file. The available options are Do Not Add to Workspaces or Add to Workspaces.

Add to workspaces

Orientation

Specifies whether the toolbar is floating or docked (top, bottom, left, or right) the first time the CUIx file is loaded.

Top

Default X Location

Specifies the location from the left edge of the screen when the toolbar appears when it is floating, or the location when it is docked. If docked, a value of 0 indicates the left most location in a docked area.

0

Default Y Location

Specifies the location from the top edge of the screen when the toolbar appears when it is floating, or the location when it is docked. If docked, a value of 0 indicates the top most location in a docked area.

0

Rows

Specifies the number of rows the items on the toolbar are displayed in when the toolbar is floating.

1

Aliases

Specifies the aliases for the toolbar. Click the [] button to open the Aliases dialog box. Each alias in the CUIx file should be unique and it is used to reference the toolbar programmatically.

TB_STANDARD, Standard

Element ID

Tag that uniquely identifies a toolbar.

ID_TbStandard

NoteThe properties On By Default, Orientation, Default X Location, Default Y Location, and Rows are used only the first time the CUIx file is loaded and when no default workspace is set. After a toolbar is loaded the first time, a workspace is used to control the Appearance properties of a toolbar. See the procedure To change the properties of a toolbar for more information.

When you create a new toolbar, the first task you need to do is to provide a name for it. A new toolbar has no commands or controls assigned to it. If a toolbar has no commands or controls on it, it is ignored by the program until you add at least one command or control to it. You add commands and controls to a toolbar by dragging a command or control from an existing toolbar or the Command List pane and dropping it onto a toolbar. Once a command or control has been added to a toolbar, you can change the text that is displayed in the tooltip when the cursor hovers over top of the button by changing the Name property that is displayed in the Properties pane.

Customize Toolbars with the Toolbar Preview Pane

You can customize a toolbar using the tree view under the Customizations In <file name> pane or the Toolbar Preview pane. The Toolbar Preview pane allows you to add and remove commands or controls visually in real-time instead of just using the tree view. You can also interactively drag a command or control in the preview pane to reposition it.

Customize Toolbars from the Application Window

The program allows you to customize toolbars that are displayed in the application when the Customize User Interface (CUI) Editor is open. You drag commands from the Command List pane and drop then directly onto a visible toolbar that is docked or floating in the application window. You can also remove, reposition, or copy commands on a visible toolbar while the CUI Editor is open.

Create Ribbon Panels from Toolbars

New ribbon panels can be created from a toolbar by dragging existing toolbars from the Toolbars node under the Customizations In <file name> pane to the Panels node under Ribbon in the Customizations In <file name> pane. When the toolbar is dropped, you are prompted to convert a copy of the toolbar to a ribbon panel. See Ribbon Panels for more information about customizing ribbon panels.

Show Me: Create a Toolbar
See Also
Procedure
To create a toolbar
To create a toolbar from a pull-down menu
To add a command to a toolbar in the Customizations In pane
To add a command to a toolbar in the Toolbar Preview pane
To add a command to a toolbar outside the CUI Editor
To reposition a command or control on a toolbar in the Customizations In pane
To reposition a command or control on a toolbar in the Toolbar Preview pane
To reposition a command on a toolbar outside the CUI Editor
To remove a command or control from a toolbar in the Customizations In pane
To remove a command or control from a toolbar in the Toolbar Preview pane
To remove a command from a toolbar outside the CUI Editor
To change properties of a toolbar
To change the tooltip of a command
Quick Reference
Commands
System Variables